home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-08-25 | 1.3 KB | 55 lines | [TEXT/CWIE] |
- //
- // ScriptingAPI.h
- //
- // >>> ⌐ 1996-1997 Microsoft Corporation. All rights reserved. <<<
- //
-
- #define _MAC
- #define NONAMELESSUNION
-
- #ifndef _OLE2_H_
- #include <ole2.h>
- #endif
-
- #ifndef _DISPATCH_H_
- #include <dispatch.h>
- #endif
-
- #ifndef _H_AXTypes
- #include <AXTypes.h>
- #endif
-
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #pragma internal off
- #pragma import on
-
-
- // ******* Scripting **************/
- AXErrorCode AX_ConnectScripts(AXRefID inSiteID, IDispatch* inEventDispatch, IDispatch** outMethodDispatch, AXRefID* outEventConnection);
- AXErrorCode AX_DisconnectScripts(IDispatch* inMethodDispatch, AXRefID inEventConnection);
-
- // ************ Scripting Utility functions ***************** //
- char* AX_GetBSTR(VARIANT* inBSTR);
- AXErrorCode AX_SetBSTR(char* inStr, VARIANT* outBSTR);
- AXErrorCode AX_InitDispatchParams(DISPPARAMS* ioParams, Uint32 inNumParams);
- AXErrorCode AX_AddDispatchParam(VARIANTARG* inParam, DISPPARAMS* ioParams);
- AXErrorCode AX_ReleaseDispatchParams(DISPPARAMS* ioParams);
- AXErrorCode AX_InitVariant(VARIANT* ioVariant);
- AXErrorCode AX_ReleaseVariant(VARIANT* ioVariant);
- AXErrorCode AX_ChangeType(VARIANT* inSource, VARTYPE inType, Uint16 inFlags, VARIANT* outDest);
-
-
-
- #pragma import reset
- #pragma internal reset
-
-
- #ifdef __cplusplus
- } /* end extern "C" */
- #endif
-
-